package com.system.user.service.impl;

import com.system.user.dao.UserMapper;
import com.system.user.entity.User;
import com.system.user.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by nipin on 16/12/15.
 */
@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public int insert(User user) {
        return userMapper.insert(user);
    }

    @Override
    public int delete(long id) {
        return userMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int update(User user) {
        return userMapper.updateByPrimaryKey(user);
    }

    @Override
    public List<User> query() {
        return null;
    }

    @Override
    public List<User> query(User user, int page, int size) {
        return null;
    }

    @Override
    public User login(User user) {
        return null;
    }
}
